using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Trans.Mini.Alipay;

namespace JlPay.Sdk.Services.Trans.Mini.Alipay
{
    /// <summary>
    /// 支付宝WAP支付服务
    /// </summary>
    public class WapPayService : BaseService
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="config">配置对象</param>
        public WapPayService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 支付宝WAP支付接口
        /// </summary>
        /// <param name="request">支付宝WAP支付请求</param>
        /// <returns>支付宝WAP支付响应</returns>
        public async Task<WapPayResponse> WapPayAsync(WapPayRequest request)
        {
            return await PostAsync<WapPayRequest, WapPayResponse>(request, WapPayRequest.API_URL);
        }
    }
} 